package com.Service;

import com.pojo.Product;
import org.springframework.stereotype.Service;

import java.util.List;

public interface ProductService {
    List<Product> findAll();
    List<Product> findByCategoryId(Long categoryId);

    Product findById(Long id);

    void add(Product product);

    void delete(Integer id);

    void update(Product product);
}
